public class MaxPlus {
    public static double max(double a,double b,double c) {
        double s = a > b ? a : b;
        return s > c ? s : c;
    }
    public static int max(int a,int b) {
        return a > b ? a : b;
    }
    public static void main(String[] args) {
        System.out.println(max(3, 5));
        System.out.println(max(2.3, 4.5, 7.8));
    }
}
